package day12.tarena.com.innerClass;

/**
 * AnonymousInnerClass Test
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-1-26
 */
public class TeatAnn {
	public static void main(String[] args) {
		@SuppressWarnings("unused")
		Object obj1 = new Object();
		// System.out.println(obj1);
		Object obj2 = new Object() {
			@Override
			public String toString() {
				return "This is AnonymousInnerClass's override method!";
			}
		};// 匿名的代码和new放在一起，因为没有名字
		System.out.println(obj2);
	}

}
